import styled from "styled-components";

import bg_sm from "../../assets/bg_sm.png";

export const ClockHead = styled.div`
  display: flex;
  font-size: 0.28rem;
  line-height: 0.4rem;
  padding: 0 0.15rem;
  text-align: center;
  background: #fff;
  border-bottom: 0.01rem solid #eee;
  .item {
    flex: 1;
    position: relative;
    padding: 0.1rem;
    margin: 0 0.1rem;
    i {
      right: -0.05rem;
      top: 0;
      position: absolute;
      color: #c29c5d;
    }
    &.atthis {
      background: #c29c5d;
      color: #fff;
    }
  }
  .date {
    width: 0.5rem;
    padding: 0.2rem 0 0;
    line-height: 0.3rem;
    .icon-date {
      font-size: 0.5rem;
      color: #333;
    }
    .icon-arr {
      font-size: 0.2rem;
      color: #333;
    }
  }
`;

export const ClockToday = styled.div`
  background: #fff;
  text-align: center;
  position: relative;
  padding: 0.4rem 0;
  p {
    font-size: 0.24rem;
    color: #b2b2b2;
    line-height: 0.5rem;
  }
  input {
    display: none;
  }
  button {
    background: #c29c5d;
    color: #fff;
    border: 0;
    font-size: 0.3rem;
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
    margin: 0.2rem 0;
    &.atthis {
      background: #fff;
      border: 0.01rem solid #eee;
      color: #808080;
    }
  }
`;
export const Tag = styled.div`
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  background: #c29c5d;
  padding: 0.1rem 0.15rem;
  border-radius: 0.3rem 0 0 0.3rem;
  color: #fff;
  font-size: 0.24rem;
`;
export const ClockTitle = styled.div`
  background: #f2f2f2;
  line-height: 0.8rem;
  font-size: 0.24rem;
  padding: 0 0.2rem;
  color: #333;
  span {
    float: right;
    color: #c29c5d;
    font-size: 0.24rem;
  }
  b {
    font-weight: normal;
  }
`;
export const ClockList = styled.div`
  background: #f2f2f2;
`;
export const ClockItem = styled.div`
  background: #fff;
  margin-bottom: 0.15rem;
  padding: 0.15rem;
  .head {
    display: flex;
    justify-content: space-between;
    .name {
      line-height: 0.8rem;
      display: flex;
      font-size: 0.28rem;
      color: #333;
      img {
        width: 0.8rem;
        height: 0.8rem;
        border-radius: 50%;
        margin-right: 0.2rem;
      }
    }
    .ph {
      line-height: 0.8rem;
      font-size: 0.28rem;
      color: #808080;
      i {
        font-size: 0.3rem;
        margin-right: 0.1rem;
      }
    }
  }

  .tu {
    position: relative;
    margin: 0.2rem 0;
    height: 3.5rem;
    img,
    video {
      width: 100%;
      height: 3.5rem;
      border-radius: 0.1rem;
      opacity: 0.6;
    }
    i {
      position: absolute;
      left: 50%;
      top: 50%;
      margin: -0.5rem 0 0 -0.5rem;
      font-size: 1rem;
      color: #fff;
      z-index: 9;
    }
  }

  .time {
    font-size: 0.24rem;
    color: #808080;
    span {
      float: right;
      color: #333;
      i {
        font-size: 0.2rem;
        color: #808080;
        margin-right: 0.1rem;
      }
    }
  }

  .des {
    font-size: 0.24rem;
    color: #808080;
    margin-top: 0.1rem;
    line-height: 0.36rem;
  }
`;
export const PopUp = styled.div`
  position: fixed;
  display: none;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 11;
  &.show {
    display: block;
  }
  .content {
    width: 5.77rem;
    height: 6.75rem;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -3rem 0 0 -3.38rem;
    background: transparent url(${bg_sm}) no-repeat left top;
    background-size: 100% 100%;
    z-index: 12;
    text-align: center;
    h2 {
      font-size: 0.3rem;
      color: #78482f;
      padding-top: 0.6rem;
      margin-left: 0.6rem;
      margin-bottom: 0.3rem;
    }
    p {
      font-size: 0.20rem;
      line-height: 0.36rem;
      color: #78482f;
      margin-left: 0.6rem;
      padding: 0 .6rem;
    }
    b {
      font-size: 0.3rem;
      color: #78482f;
      font-weight: normal;
      position: absolute;
      bottom: 1.25rem;
      left: 50%;
      text-indent: 0.6rem;
      transform: translate(-50%, 0);
    }
    i {
      font-size: 0.6rem;
      color: #fff;
      position: absolute;
      left: 50%;
      margin-left: -0.3rem;
      top: 7rem;
    }
  }
`;

export const DateCont = styled.div`
  position: relative;
  margin: 0.15rem;
  background: #fff;
  border-radius: 0.05rem;
  span {
    color: #c29c5d;
    position: absolute;
    right: 0.4rem;
    top: 1.3rem;
  }
  h2 {
    font-size: 0.28rem;
    line-height: 0.9rem;
    color: #292929;
    border-bottom: 0.01rem solid #eee;
    font-weight: normal;
    padding: 0 0.3rem;
    i {
      font-size: 0.4rem;
      position: relative;
      top: 0.05rem;
      margin-right: 0.1rem;
    }
  }
`;

export const DateHead = styled.div`
  margin: 0.15rem;
  background: #fff;
  border-radius: 0.05rem;
  display: flex;
  text-align: center;
  justify-content: center;
  padding: 0.6rem 0;
  > div {
    font-size: 0.28rem;
    line-height: 0.6rem;
    width: 1.5rem;
  }
`;

export const ActiveList = styled.ul`
  overflow: hidden;
  padding: 0.2rem;
  li {
    background: #fff;
    padding: 0.1rem 0.2rem 0.2rem;
    border-radius: 0.1rem;
    overflow: hidden;
    margin-bottom: 0.2rem;
    h1 {
      font-size: 0.3rem;
      line-height: 0.3rem;
      color: #333;
      margin: 0.67em 0;
      font-weight: normal;
    }
    .des {
      display: flex;
      font-size: 0.24rem;
      color: #808080;
      b {
        font-weight: normal;
        color: #f03c3c;
        margin: 0 0.05rem;
      }
      span {
        span {
          color: #333;
        }
      }
      .dk {
        flex: 1;
        margin: 0 0.2rem;
      }
    }
    .btn {
      display: flex;
      background: #fafafa;
      margin: 0 -0.2rem -0.2rem -0.21rem;
      padding: 0.25rem 0;
      margin-top: 0.3rem;
      div {
        flex: 1;
        text-align: center;
        color: #808080;
        font-size: 0.24rem;
        border-right: 0.01rem solid #ccc;
        i {
          font-size: 0.24rem;
          color: #808080;
          margin-right: 0.05rem;
        }
        &.time {
          border-right: 0;
        }
      }
    }
  }
`;
